﻿

	
<!DOCTYPE html>  
<html>  
<head>  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
    <meta name="keywords" content="客户联系人查询">  
    <meta name="description" content="客户联系人查询">  
    <title>客户联系人查询</title>  
    
    <%@ include file="/WEB-INF/inc/default.jsp"%>
    <jsp:include page="/WEB-INF/inc/dic.jsp"/>

</head> 
 
<body>  
    
      
    <table id="dg" title="客户联系人查询" style="height:555px" 
            url="/talent/cv/extcustomercontactercvlist.do"  
            toolbar="#toolbar" pagination="true"  
            rownumbers="true" fitColumns="true" loadMsg="正在查询,请稍候..." singleSelect="false">  

    </table>  
    <div id="toolbar">  
        客户名:<input id="input_custName" name="custName" class="easyui-box" style="width:80px">
        角色:<input id="input_role" class="easyui-combobox" name="currency" style="width:200px;"  data-options="data:__getConstantCategory('CUSTOMER_CONTACTER'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
        人选姓名:<input id="input_cvName" name="cvName" class="easyui-box" style="width:80px">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="quickQuery()">查询</a>
    </div>  
    
    <!-- query form窗体(开始) -->  
    <div id="dlg_query" style="display:none;">  
    	  <!--
        <div class="ftitle">职位Offer</div>  
        <form id="fm_query" method="post" novalidate>  
                    		     
	        		     <div class="fitem">  
                     <label style="width:100px">offer日期:</label>                       
                     <input name="applyD" data-options="formatter:formateDate" class="easyui-datebox">                         	
                   </div>  	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">上班日期:</label>                       
                     <input name="ondutyD" data-options="formatter:formateDate" class="easyui-datebox">                         	
                   </div>  	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">试用期时长:</label>                       
                     <input name="trial" class="easyui-numberbox">                       
                   </div>	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">试用期到期日:</label>                       
                     <input name="expiredD" data-options="formatter:formateDate" class="easyui-datebox">                         	
                   </div>  	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">年薪:</label>                       
                     <input name="salary" class="easyui-numberbox">                       
                   </div>	        		     
        	  	   	 <div class="fitem">  
                     <label style="width:100px">货币单位:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="currency" style="width:200px;"  data-options="data:__getConstantCategory('MoneyType'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
	        		     <div class="fitem">  
                     <label style="width:100px">预计收费:</label>                       
                     <input name="estimateAr" class="easyui-numberbox">                       
                   </div>	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">实际上班日期:</label>                       
                     <input name="checkinD" data-options="formatter:formateDate" class="easyui-datebox">                         	
                   </div>  	        		     
        	  	   	 <div class="fitem">  
                     <label style="width:100px">offer状态:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="status" style="width:200px;"  data-options="data:__getConstantCategory('OfferStatus'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
	        		     <div class="fitem">  
                     <label style="width:100px">offer状态补充说明:</label>                                            
                     <input name="statusDesc" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">调整费用:</label>                       
                     <input name="adjustAr" class="easyui-numberbox">                       
                   </div>	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">调整类型:</label>                       
                     <input name="adjustSign" class="easyui-numberbox">                       
                   </div>	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">调整说明:</label>                                            
                     <input name="adjustDesc" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">实际收费金额:</label>                       
                     <input name="finalAr" class="easyui-numberbox">                       
                   </div>	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">账单状态:</label>                       
                     <input name="pnStatus" class="easyui-numberbox">                       
                   </div>	        		     
	        		         
	        		     <div class="fitem">  
                     <label style="width:100px">offerFile:</label>                                            
                     <input name="offerFile" class="easyui-box">                       
                   </div> 
              
              
        </form>
        <div  style="text-align:center">  
          <a href="javascript:void(0)" id="btn-query" class="easyui-linkbutton" iconCls="icon-ok" ">查询</a>  
          <a href="javascript:void(0)" id="btn-query-close" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>  
        </div>  
        -->
    </div> 
    <!-- query form窗体(结束) -->  
    
    <script type="text/javascript">  
        var url;  
        
        
		    
		    var queryWin = $.window({
		       		 title:"职位Offer查询",
		       		 tplRef:"dlg_query",//这个属性指定模板id
		       		 height:200,		       		 
		       		 closed:true,		       		 
		       		 onComplete:function(){
		       		 	  //窗口里面的初始化,最好是在这个事件里面进行
		       		 	  var curWin=this;
		       		 	  var doForm=curWin.find('#fm_query');
		       		 	  curWin.doForm=doForm;
		       		 	  this.find("#btn-query-close").click(function(){		       		 	  	
		       		 	  	   curWin.window('close');
		       		 	  });
		       		 	  this.find("#btn-query").click(function(){
		       		 	  			                 		  
		                 		 //var formdata=$('#fm_query').formToArray(); 
		                 		 curWin.window('close');
		                 		 var formdata=curWin.find('#fm_query').formToArray();   		 
		                 		 curWin.openWin.query(formdata);
		              });
		       		   
		       		 }
		    });
        
        
      
        function reload(){        	
        	  $('#dg').datagrid('reload');
        }
        function find(){  
              
                //$('#dlg_query').dialog('open').dialog('setTitle','查询');  
                
                //url = '/project/contractJobCvOffer/list.do';  
                 queryWin.window('open');   
                 queryWin.openWin=window; 
              
        } 
        function quickQuery(){                                  
                var formdata='{';
                formdata='custName:'+'"'+$('#input_custName').val()+'"'+'}';
                formdata=',role:'+'"'+$('#input_role').val()+'"'+'}';
                formdata=',cvName:'+'"'+$('#input_cvName').val()+'"'+'}';
                formdata='}';
                
                var jsondata=eval('('+formdata+')');
                
                //if (!$('#fm_query').form('validate')) return; 
                $('#dg').datagrid({
	                  queryParams: jsondata
                });
               //$('#dlg_query').dialog('close');
              
        }
        	
        function query(formdata){  
                
                $('#dg').datagrid({
	                  queryParams: array2json(formdata)
                });
              
        }
        
        //生成grid的字段,需要字典的自动转换
        $('#dg').datagrid({
        	   columns:[[
        	           	 
        	   	        	   	        	   	
        	   	   {field:'custName',title:'客户公司', width:100}
        	   	   ,{field:'role',title:'联系人角色', width:100,
        	   	   	formatter: function(value,row,index){
        	   		      	return __getConstantCategoryCodeValue('CUSTOMER_CONTACTER', value);
        	   		      }
        	   	   	}
        	   	   ,{field:'cvName',title:'联系人', width:100}
        	   	   ,{field:'cvNameEn',title:'英文名', width:100,hidden:true}
        	   	   ,{field:'sex',title:'性别', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getConstantCategoryCodeValue('SEX', value);
        	   		      },hidden:true
        	   	     }
        	   	   ,{field:'industry',title:'行业', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategory('INDUSTRY', value);
        	   		      },hidden:true
        	   	     }
        	   	    ,{field:'function',title:'职能', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('JOB', value);
        	   		      },hidden:true
        	   	     }   
        	   	    ,{field:'workYear',title:'工作年限', width:100} 
        	   	    ,{field:'mobile',title:'手机', width:100}
        	   	   ,{field:'phone',title:'电话', width:100}
        	   	   ,{field:'email',title:'电邮', width:100}
        	   	   ,{field:'title',title:'职位', width:100}
        	   	   ,{field:'degree',title:'学历', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('DEGREE', value);
        	   		      },hidden:true
        	   	     }
        	   	    ,{field:'married',title:'婚姻状况', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('MARRIED', value);
        	   		      },hidden:true
        	   	     } 
        	   	   
        	   	
        	   	
        	   ]]
        	   ,onDblClickRow: function(rowIndex, rowData){
        	    	$('#dlg').dialog('open').dialog('setTitle','修改职位Offer');                  
                $('#fm').form('load','/project/contractJobCvOffer/get.do?id='+rowData.id);  
                url = '/project/contractJobCvOffer/update.do';        	    	
        	    }
        }); 
        //完成-生成grid的字段
        
        
        
    </script>  
     
     

     
     
     
</body>  
</html>